﻿@model zichan.Entity.Cabinet
@{
    ViewBag.Title = "编辑机柜";
}

@section Pagetitle{
    @AdminCommon.PageTitle("机柜管理", "编辑")
}


@using (Html.BeginForm("CabinetEdit", "Cabinet", FormMethod.Post, new { @class = "form-horizontal" }))
{
    <div class="form-body">
        @Html.HiddenFor(o => o.Id)
        @Html.AntiForgeryToken()
        @Html.HiddenFor(o=>o.uploadTime)
        <div class="form-group ">
            <label class="col-md-3 control-label xh">机柜名称:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Name, new { @class = "form-control input-large" })
                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Name)
                </span>
            </div>
        </div>

        <div class="form-group ">
            <label class="col-md-3 control-label xh">选择机房:</label>
            <div class="col-md-9">
                @Html.DropDownList("MachineRoomId", (SelectList)ViewBag.MachineRoomIds, "请选择机房", new { @class = "form-control input-large" })
                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.MachineRoomId)
                </span>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label xh">标准机架数:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Number, new { @class = "form-control input-small" })

                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Number)
                </span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-3 control-label">机柜备注:</label>
            <div class="col-md-9">
                @Html.TextAreaFor(o => o.Remark, new { @class = "form-control input-large" })

            </div>
        </div>

        <div class="form-actions">
            <div class="row">
                <div class="col-md-offset-3 col-md-9">
                    <button type="submit" class="btn green">提交</button>
                    <a href="/Cabinet/Index" class="btn default">返回</a>
                </div>
            </div>
        </div>
    </div>
}


@section footer{
    @Scripts.Render("~/bundles/jqueryval")

}

